﻿using System;
using Autodesk.Revit.DB;

namespace YArchitech.Revit
{
	public class SelectedElement
	{
		public XYZ SelectedPoint { get; set; }

		public Element Element { get; set; }

		public bool IsPipe
		{
			get
			{
				return this.Element.IsPipe() || this.Element.IsFlexPipe();
			}
		}

		public bool IsDuct
		{
			get
			{
				return this.Element.IsDuct() || this.Element.IsFlexDuct();
			}
		}
	}
}
